<template>
  <div>
    <el-container>
      <el-header class="layout-header">
        <span  style="font-family: Hei; color: black ;line-height: 45px;font-size: 24px;font-weight: bolder">新冠物资管理</span>
      </el-header>
      <el-container style="box-shadow: 0 2px 10px 2px rgba(0,0,0,0.8);"></el-container>
      <el-container class="layout-body">
        <el-aside class="layout-aside">
          <el-menu router="" text-color="#FFF" background-color="#009bb3">
            <el-menu-item index="/home">
              <i class="el-icon-s-home"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-divider></el-divider>
            <el-menu-item index="/user">
              <i class="el-icon-user-solid"></i>
              <span slot="title">个人中心</span>
            </el-menu-item>
            <el-divider></el-divider>
            <el-menu-item index="/user/manage/item/info">
              <i class="el-icon-setting"></i>
              <span slot="title">物资信息管理</span>
            </el-menu-item>
            <el-divider></el-divider>
            <el-menu-item index="/user/manage/item/apply">
              <i class="el-icon-remove"></i>
              <span slot="title">物资申请管理</span>
            </el-menu-item>
            <el-divider></el-divider>
            <el-menu-item index="/user/manage/item/donation">
              <i class="el-icon-circle-plus"></i>
              <span slot="title">物资捐献管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view :key="$route.fullPath"/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style>
  * {margin: 0}
  .layout-header{
    background:#009bb3;
    height: 45px !important;
    text-align: center;
  }
  .layout-aside{
    width: 190px !important;
    background-color:#009bb3;
  }
  .layout-body{
    margin: 0 auto;
    position: absolute;top: 45px; bottom: 0;left: 0;right: 0;
  }
  ul.el-menu{
    background: unset;
  }
  .el-divider--horizontal{
    margin: 0;
  }
</style>